{block name="title" prepend}{$LNG.lm_trader}{/block}
{block name="content"}
<form id="trader" action="" method="post">
	<input type="hidden" name="mode" value="obmenatm">
	<table class="table569">
	<tr>
		<th colspan="3">{$LNG.tr_sell} {$LNG.tech.931}</th>
	</tr>
	<tr>
		<td>{$LNG.tr_resource}</td>
		<td>{$LNG.tr_amount}</td>
		<td>{$LNG.tr_quota_exchange}</td>
	</tr>
	<tr>
		<td>{$LNG.tech.931}</td>
		<td><span id="ress">0</span></td>
		<td>1</td>
	</tr>
	<tr>
		<td><label for="$LNG.tech.931">{$LNG.tech[921]}</label></td>
		<td>{if $atm > 0}<input name="tm" id="tm" class="trade_input" type="text" value="0" size="30">{else}{$LNG.not_enough_atm}{/if}</td>
		<td>{$kursatm}</td>
	</tr>
	<tr  style="display:none;">
		<td><label for="hz">hz</label></td>
		<td><input name="hz" id="hz" class="trade_input" type="text" value="0" size="30"></td>
		<td></td>
	</tr>
    <tr  style="display:none;">
		<td><label for="hz">hz</label></td>
		<td><input name="hz" id="hz" class="trade_input" type="text" value="0" size="30"></td>
		<td></td>
	</tr>
    {if $atm > 0}
	<tr>
		<td colspan="3"><input type="submit" value="{$LNG.tr_exchange}"></td>
	</tr>
    {/if}
	</table>
</form>
{/block}
{block name="script" append}
<script type="text/javascript">
var ress1charge = {$kursatm|default:'0'};
var ress2charge = 0;
var ress3charge = 0;
</script>
{/block}